package server;


/**
 * Thrown to indicate that the specified agent's ID is not allowed.
 * @author Francesco Aiello, Antonio Guerrieri, Raffaele Gravina
 */
public class AgentIDException extends Exception {

	private String message;
	
	private static final long serialVersionUID = 9194816112339402701L;
	
	/**
	 * The constructor is needed to specify the exception with a message
	 * @param message
	 */
	public AgentIDException (String message) {
		this.message = message;
	}
	
	/**
	 * Gets the exception message
	 * @return the exception message
	 */
	public String getMessage() {
		return message;
	}
	
}
